package com.twenty.seven.webapp.demo.feign;

import com.twenty.seven.common.ResultJson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 001
 * @Date 2020/1/14 11:38
 * @TODO
 **/
@FeignClient(name = "demo-server")
public interface Demo1Service {

    /**
     * 测试
     * @param id
     * @return
     */
    @GetMapping(value = "/demo-server/query/{id}")
    ResultJson queryById(@PathVariable(value = "id") long id);
}
